#include "../../MyUtils/DataType/Units.hpp"
#include <gtest/gtest.h>

using namespace MyUtils::DataType::Units;

TEST(unit, unit)
{
    MyUtils::DataType::Units::Force f = 1000.0_N;

    EXPECT_EQ(f.value(), 1000.0);

    long double ld = (long double)f;

    EXPECT_EQ(ld, 1000.0);

    MyUtils::DataType::Units::Time l = 1.0_s;

    auto moment = l * f;
    EXPECT_EQ(moment, 1000.0_N_s);
}


